//
//  main.cpp
//  数组作为函数参数
//
//  Created by linjinzhu on 2017/7/10.
//  Copyright © 2017年 baidu. All rights reserved.
//

#include <iostream>
using namespace std;

double getAverage(int arr[], int size);

int main(int argc, const char * argv[]) {

    int arr[] = {1,2,3,4,5};
    cout << "average " << getAverage(arr, 5) << endl;

    return 0;
}
